<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";//http://192.168.1.1:8080/abc/abc.jsp
%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<base href="<%=basePath%>">
<html lang="zh">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>XX医院</title>
    <link rel="stylesheet" href="user/css/bootstrap.css">
    <link rel="stylesheet" type="text/css" href="user/css/default.css">
    <link rel="stylesheet" type="text/css" href="user/css/offcanvas.min.css">
    <link rel="stylesheet" type="text/css" href="assets/css/main.css">
</head>

<body class="">
<div class="overlay"></div>
<div id="mark_mask" style="display:none;position:fixed;top:40px;left:0;z-index:99999999;height:1000px;width:100%;background:rgba(0,0,0,0.4);"></div>
<nav class="navbar navbar-inverse navbar-static-top" style="margin-bottom: 0px;">
    <div class="container" >
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed pull-left" data-toggle="offcanvas">
                <span class="sr-only">菜单栏</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" >xx保健医院</a>
        </div>

        <div  id="navbar" class="collapse navbar-collapse sidebar-offcanvas">
            <ul class="nav navbar-nav">
                <c:if test="${not empty UserMenu}">
                    <c:forEach items="${UserMenu}" var="UserMenu">
                        <li >
                            <a target="myIframe" href="${UserMenu.url}">${UserMenu.userMenuName}</a>
                        </li>
                    </c:forEach>
                </c:if>

                <c:choose>
                    <c:when test="${frontUser != null}">
                        <li>
                            <a target="myIframe" href="openUserPage.action">个人信息</a>
                        </li>
                        <%--<li>--%>
                            <%--<a target="myIframe" href="userTransaction/userSeeMoneyDetails.action">资金明细</a>--%>
                        <%--</li>--%>
                        <li>
                            <a target="myIframe" href="userTransaction/showUserRecharge.action">充值</a>
                        </li>
                        <li>
                            <a target="myIframe" href="ph_combo_choice.action">套餐选择</a>
                        </li>
                        <%--<li>
                            <a target="myIframe" href="userTransaction/userRefund.action">退款</a>
                        </li>--%>
                        <li id="li2">
                            欢迎&nbsp;:&nbsp;&nbsp;${frontUser.userName}
                        </li>
                        <li>
                            <a  href="frontUser/userOut.action">退出</a>
                        </li>
                    </c:when>
                    <c:when test="${frontUser == null}">
                        <li>
                            <a href="frontUser/showUserLogin.action">登录</a>
                        </li>
                        <li>
                            <a target="myIframe"  href="frontUser/showRegisterUser.action">注册</a>
                        </li>
                    </c:when>
                </c:choose>

            </ul>
        </div>

    </div>
</nav>
<iframe src="frontUser/showUserIndex.action"  name="myIframe" frameborder="0" width="100%px" height="100%px" ></iframe>

<script type="text/javascript" src="user/js/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="user/js/offcanvas.js"></script>
<script type="text/javascript" src="user/js/userRecharge.js"></script>
</body>

</html>